﻿@using System.Web.Mvc.Html
@model HinduShop.UI.ViewModels.StoreManager.EditProductViewModel 

@{
    ViewBag.Title = "Добавление продукта";
}

<h2>Добавление продукта</h2>

@using (Html.BeginForm())
{
    <fieldset>
        <legend>Product</legend>
        <p>
            @Html.HiddenFor(m => m.ProductId)
        </p>

        <p>
            @Html.LabelFor(x => x.ProductName) <br/>
            @Html.TextBoxFor(x => x.ProductName)
        </p>

        <p>
            @Html.LabelFor(x => x.ProductPrice) <br/>
            @Html.TextBoxFor(x => x.ProductPrice)
        </p>

        <p>
            Категория: <br/>
            @Html.ListBoxFor(x => x.CategoryName, Model.CategorySelectList)
        </p>
        
        <input type="submit" />
    </fieldset>
}